local BXlianzhou = fk.CreateSkill {
    name = "BXlianzhou",
    anim_type = "offensive",
    tags = {Skill.Compulsory},
}

Fk:loadTranslationTable{
  ["BXlianzhou"] = "连肘",
  [":BXlianzhou"] = "锁定技，当你累计造成7点伤害后，你升级“幕讨”。",
  ["@lianzhou_damage"] = "连肘",
  
}

BXlianzhou:addEffect(fk.Damage, {
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(BXlianzhou.name) and data.from and data.from == player and player:getMark("@lianzhou_damage") <= 7
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local damage_count = player:getMark("@lianzhou_damage") + data.damage
    room:setPlayerMark(player, "@lianzhou_damage", damage_count)
    if damage_count >= 7 then
      room:setPlayerMark(player, "mutao_level", 1)
    end
  end,
})

return BXlianzhou 